const mongoose = require('mongoose')

// 设置属性类型
let CommentSchema = new mongoose.Schema({
  title: String,
  Context: String,
  name: String,
  state: {
    type: Number,
    default: 0
  },
  time: {
    type: Date,
    default: new Date()
  },

})
let CommentModel = mongoose.model('Comments', CommentSchema)

module.exports = CommentModel